/**
 * @author Nicolas Zimerman (zimerman@usi.ch)
 * @author Nicolas Latorre (nicolas.latorre@usi.ch)
 */
package ch.usi.inf.pf2.gui.action;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.ImageIcon;

import ch.usi.inf.pf2.LogicSim;
import ch.usi.inf.pf2.gui.Model;

public final class NewAction extends AbstractAction{
	private static final long serialVersionUID = 1073880542729629463L;

	public NewAction() {
        putValue(NAME, "New");
        final ImageIcon icon = new ImageIcon(getClass().getResource("../icons/new.png"));
        putValue(SMALL_ICON, icon);
        putValue(SHORT_DESCRIPTION, "Load a file from the local machine.");

        setEnabled(true);
    }
    
    public void actionPerformed(final ActionEvent ev) {
        Model model = new Model();
        LogicSim logicSim = new LogicSim(model);
    }
}
